// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 用于覆盖浏览器样式 否则会受到浏览器 user agent stylesheet 样式的影响
import 'normalize.css/normalize.css'
// 引入elemet-ui相关
import Element from 'element-ui'
import './styles/element-variables.scss'
// 引入前台页面访问控制，未登录状态下默认跳转login页面
import './permission'

import './styles/index.scss'

// 引入图标库
import './icons'
// 引入Vuex store
import store from './store'

Vue.use(Element, {
  size: 'medium'
})
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
